package edu.cuit.svsp.controller;

import edu.cuit.svsp.request.ResponseResult;
import edu.cuit.svsp.util.KeyUtil;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @className: KeyController
 * @author: pjy
 * @description: key 控制器
 * @date: 2024/7/7
 */
@RestController
@RequestMapping("/key")
public class KeyController {

    @GetMapping("/apply")
    public ResponseResult apply() {
        return new ResponseResult(HttpStatus.OK.value(), "success", KeyUtil.getKey());
    }
}
